home *** CD-ROM | disk | FTP | other *** search
- // TNTC.HPP
- // provides C to CPP interface for TELNET protocol
-
- class CMyPowerTelnet : public CPowerTelnet
- // CPowerTelnet is the C++ class that provides TELNET processing
- {
- private:
- public:
- HWND hWnd;
- // constructor to create a session object that is not connected yet
- CMyPowerTelnet(HINSTANCE);
- ~CMyPowerTelnet(void);
- // informs us that comm is open
- void ConnectEvent (LPCSTR RemoteDotAddr,
- WORD RemotePort, LPCSTR LocalDotAddr, WORD LocalPort,
- LPCSTR LocalName);
- // informs us that data has been received
- void TelnetRecvEvent (LPVOID Data, size_t Cnt);
- // informs us that a TELNET option has arrived
- void TelnetCmdEvent (BYTE Cmd, BYTE Option, LPBYTE SubOption, size_t SubOptionCnt);
- // informs us of an exception...may prompt us to close the connection
- void ExceptionEvent (PT_EXCEPTION Error, LPCSTR ErrorDesc);
- };
-